<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="pragma" content="no-cache">
<title>天小天个人网-后台首页</title>
<link rel="shortcut icon " type="images/x-png" href="../../public/pic/icon.png">
<link href="../css/dynamic2.css" type="text/css" rel="stylesheet">
<link href="../../public/bs/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<script src="../../public/bs/js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="../../public/bs/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/dynamic2.js" type="text/javascript"></script>
</head>

<body>
    <div class="container all5-box-right">
           <div class="col-md-12 all5-box-right-pic">
                 <div class="col-md-4 all5-top1">
                   <form method="post" class="form-inline">
                        <p> 添加子相册：</p>
                        <input type="text" name="dir_name" class="form-control pull-left"/>
                        <input type="submit" value="创建" class="btn btn-success col-sm-2"/>
                    </form>
                  </div>
                  <div class="col-md-8 all5-top2">
                    <form method="post" enctype="multipart/form-data">
                        <p>添加图片：</p>
                        <input  class="col-sm-5" type="file" name="file_name" />
                        <input class="btn btn-success col-sm-2" type="submit" value="上传" /> 
                    </form>
                  </div> 
          <div>
          <div class="col-md-12 all5-bottom1">
                	当前位置：用户相册<?php if($path): ?>
		                &gt;<?php echo str_replace('/', '&gt;',$path); ?>
		               （<a href="?path=<?php if(dirname($path)=='.'){echo '';}else{echo dirname($path);} ?>">返回上级</a>）
		           <?php endif; ?>
          </div>
          <div class="col-md-12"> 
                 子相册:
                   <?php foreach($folderlist as $v){ ?>
                       <a href="?path=<?php echo $v;?>"><?php echo basename($v);?></a>
                   <?php } ?>
          </div>
          <div class="col-md-12">
                <?php foreach($filelist as $v){ $filename=basename($v); ?>
                  <a href="album_show.php?path=<?php echo "$path/$filename" ;?>">
					  <img src="<?php echo $v ?>"/>
			      </a>
                <?php }?>
          </div>
</div>
</body>
</html>
